package com.suray.wcs.service.init;

import com.suray.basic.wcs.plc.pojo.oper.lifter.pallet.INodeImplement;
import com.suray.basic.wcs.utils.Coord;
import com.suray.commin.core.utils.SpringContextHolder;
import com.suray.wcs.service.system.service.impl.NodeDBServiceImpl;
import com.suray.wcs.service.util.WcsUtil;

public class NodeImplement implements INodeImplement {
    private NodeDBServiceImpl nodeDBService = SpringContextHolder.getBean(NodeDBServiceImpl.class);

    @Override
    public boolean hasCargo(Coord node) {
        return WcsUtil.isNodeHasCargo(node, nodeDBService);
    }
}
